package com.gxljc.bear.crawler.image;

public class ImageConsts {

    public static final String HBASE_TABLE_IMAGE = "gxljc.dolphin.image";  // hbase图片表

    public static final String PARAM_IMAGEWEB_RESOURCE_DOMAIN = "imageweb.resource.domain";
    public static final String PARAM_IMAGEWEB_EXPLAIN_DOMAIN = "imageweb.explain.domain";

    public static final String HBASE_FAMILY_IMAGE_INFO = "image_info";
    public static final String HBASE_QUALIFIER_IMAGE_BINARY = "image";//图片数据保存的字段
    public static final String HBASE_QUALIFIER_IMAGE_SCALE_BINARY = "image_scale";//图片数据保存的字段
    public static final String HBASE_QUALIFIER_IMAGE_WIDTH = "width";//图片width
    public static final String HBASE_QUALIFIER_IMAGE_HEIGHT = "height";//图片height
    public static final String HBASE_QUALIFIER_IMAGE_URL = "url";//图片url

    public static final String INEXISTENCE = "inexistence";//不存在
    public static final String NOT_CHANGE = "notchage";//未改变
    public static final String IMAGE_SCALE_ERROR = "imageScaleError";//图片缩放错误
    public static final String IMAGE_TYPE_ERROR = "imageTypeError";//图片类型错误
    public static final String IMAGE_TYPE_OK = "imageTypeOk";//图片类型正常
    public static final String IMAGE_DIMENSION_ERROR = "imageDimensionError";//图片尺寸错误
    public static final String IMAGE_DIMENSION_SUITABLE = "imageSuitable";//图片尺寸合适

    //新闻缩略图长和宽
    public static final int COMMON_SCALE_WIDTH = 183;
    public static final int COMMON_SCALE_HEIGHT = 183;
    public final static String IMAGE_SCALE_FLAG = "_scale";//缩略图后缀标志


    public static enum IMAGE_MAP_NAME {    //字段内部名
        STATUS("status"), HEIGHT("height"), WIDTH("width"), URL("url"),;
        private final String value;
        private IMAGE_MAP_NAME(String value) {
            this.value = value;
        }
        public String getValue() {
            return value;
        }
    }

}
